﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ManageProductClass.aspx.cs" Inherits="WXYW.ManageProductClass" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    管理产品类型
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <asp:GridView ID="ProductClassGridView" runat="server" AutoGenerateColumns="False"
        CssClass="tableList" Width="100%" OnRowDataBound="ProductClassGridView_RowDataBound"
        onrowcommand="GridView_RowCommand">
        <Columns>
            <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="IDLbl" runat="server"></asp:Label>
                </ItemTemplate>
                <HeaderStyle Width="5%" />
                <ItemStyle Width="5%" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="名称" DataField="Name" >
                <HeaderStyle Width="30%" />
                <ItemStyle Width="30%" />
            </asp:BoundField>
            <asp:BoundField HeaderText="描述" DataField="Description" >
                <HeaderStyle Width="30%" />
                <ItemStyle Width="30%" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="是否OEM类型">
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("IsOEM") %>' Enabled="false" />
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <HeaderStyle Width="15%" />
                <ItemStyle Width="15%" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作" ShowHeader="False">
                <ItemTemplate>
                    <img src="image/operateicon/docedit.gif" alt="" />
                    <asp:LinkButton ID="editLnkBtn" runat="server" CausesValidation="false" CommandName="EditType"
                        Text="修改" CommandArgument='<%#Eval("ID") %>'></asp:LinkButton>
                    <img src="image/operateicon/docdelete.gif" alt="" />
                    <asp:LinkButton ID="deleteLnkBtn" runat="server" CausesValidation="false" CommandName="DeleteType"
                        Text="删除" CommandArgument='<%#Eval("ID") %>'></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:Content>
